<?php
/**
 * 矿机
 */
namespace app\api\model;
use app\common\model\MiningSpecification as MiningSpecificationModel;

class MiningSpecification extends MiningSpecificationModel
{
    public static function apiGetListAll($language){
        $file = 'id,pid';
        $file .= ','.file_language('name',$language);
        $file .= ','.file_language('label',$language);
        $file .= ','.file_language('pic',$language);
        $file .= ',money,max_possess,quantity_sold,duration,daily_release,status';

        $list = self::where('status',1)->field($file)->select();
        return $list;
    }
}